<?php
$result=safe_query("SELECT * FROM ".PREFIX."servers ORDER BY sort");
$n=1;
while($row=mysql_fetch_array($result)) {
	echo '<table width="100%" cellspacing="0" cellpadding="2" border="0">';
	
	$servername = htmloutput($row['name']);
	$serverip=$row['ip'];
	$servergame='<img src="images/games/'.$row['game'].'.gif" alt="" />';
  
  if($n%2) {
    $bg1=BG_1;
    $bg2=BG_2;
  }
  else {
    $bg1=BG_3;
    $bg2=BG_4;
  }
  
  eval ("\$sc_servers = \"".gettemplate("sc_servers")."\";");
	echo $sc_servers;
  $n++;
  
  echo '</table>';
}
?>